<?php
   if (isset($id))
   {
    include("./../includes/conf.inc");
    $id = mysql_connect($db_host,$db_usr,$db_pass) or die('Could not connect: ' . mysql_error());;
    mysql_select_db($db_name);
    $query = "DELETE FROM $tbl_name WHERE id=$id";
    if (mysql_query($query))
    {
          echo "File $id deleted ! <br> <a href='#' onMouseClick='javascript:window.close()'>Close window</a>";
    }
    else
    {
    
    }
   }
?>
